#import "DDChooseCell.h"
CGFloat const JTWCHOOSECELLHEIGHT = 44;
@interface DDChooseCell()
@property (nonatomic, strong) CCLabel *TitleLBL;
@property (nonatomic, strong) CCLabel *label;
@end
@implementation DDChooseCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
    {
        self.label.text = @"进入游戏>>";
        self.layer.cornerRadius = JTWCHOOSECELLHEIGHT / 2.0;
        self.layer.masksToBounds = YES;
    }
    return self;
}
- (CCLabel *)label
{
    if (!_label)
    {
        _label = [[CCLabel alloc] init];
        _label.font = FONT(UIFontWeightRegular, 15);
        _label.textColor = [UIColor whiteColor];
        [self addSubview:_label];
        _label.c_right.c_equal(self).with.coffset(-GAP);
        _label.c_centerY.c_equal(self);
    }
    return _label;
}
- (CCLabel *)TitleLBL
{
    if (!_TitleLBL)
    {
        _TitleLBL = [[CCLabel alloc] init];
        _TitleLBL.font = FONT(UIFontWeightRegular, 15);
        _TitleLBL.textColor = [UIColor whiteColor];
        [self addSubview:_TitleLBL];
        _TitleLBL.c_left.c_equal(self).with.coffset(GAP);
        _TitleLBL.c_centerY.c_equal(self);
    }
    return _TitleLBL;
}
- (void)setTitle:(NSString *)title
{
    if (_title != title)
    {
        _title = title;
        self.TitleLBL.text = _title;
    }
}

@end
